<template>
	<view>
		<u-navbar title="开发票" :background="{background: 'transparent'}" back-icon-color="#000" title-color="#000"
			:border-bottom="false">
		</u-navbar>
		<view class="order-list">
			<view class="order-item">
				<u-checkbox active-color="#2D7AFE" shape="circle" v-model="check"></u-checkbox>
				<view class="order-info">
					<view class="order-time">
						<text>滴滴打车 2021年03月14日 12:00</text>
						<text class="price">39元</text>
					</view>
					<view class="order-start"><text class="green"></text>庐山酒店</view>
					<view class="order-end"><text class="red"></text>国贸地铁站</view>
				</view>
			</view>

			<view class="order-item">
				<u-checkbox active-color="#2D7AFE" shape="circle" v-model="check"></u-checkbox>
				<view class="order-info">
					<view class="order-time">
						<text>滴滴打车 2021年03月14日 12:00</text>
						<text class="price">39元</text>
					</view>
					<view class="order-start"><text class="green"></text>庐山酒店</view>
					<view class="order-end"><text class="red"></text>国贸地铁站</view>
				</view>
			</view>
		</view>

		<view class="footer">
			<u-checkbox active-color="#2D7AFE" shape="circle" v-model="check">全选</u-checkbox>
			<view style="width: 40%;">1个行程 共
				<text style="color: #2D7AFE;font-size: 30rpx;font-weight: bolder;">39.00</text>元
			</view>
			<view class="btn" @click="open">去开票</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				check: false
			};
		},
		methods: {
			open() {
				uni.navigateTo({
					url: './openFapiao'
				})
			}
		}
	}
</script>
<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style lang="scss">
	.order-list {
		.order-item {
			padding: 30rpx;
			border-bottom: 2rpx solid #F2F2F7;
			display: flex;
			align-items: center;
			justify-content: flex-start;


			.order-info {
				width: 90%;

				.order-time {
					padding: 10rpx 0;
					width: 100%;
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-size: 24rpx;
					font-weight: 400;
					color: #999999;

					.price {
						font-size: 32rpx;
						font-weight: bolder;
						color: #333333;
					}
				}

				.order-start {
					padding: 10rpx 0;
					display: flex;
					align-items: center;
					justify-content: flex-start;
					flex-direction: row;
				}

				.order-end {
					padding: 10rpx 0;
					display: flex;
					align-items: center;
					justify-content: flex-start;
					flex-direction: row;
				}

				.red {
					width: 15rpx;
					height: 15rpx;
					border-radius: 50%;
					background-color: #FD5C5B;
					margin-right: 10rpx;
				}

				.green {
					width: 15rpx;
					height: 15rpx;
					border-radius: 50%;
					background-color: #49B992;
					margin-right: 10rpx;
				}
			}

		}

	}

	.footer {
		width: 100%;
		position: fixed;
		display: flex;
		align-items: center;
		justify-content: space-around;
		left: 0;
		bottom: 0;
		height: 120rpx;

		.btn {
			padding: 20rpx 30rpx;
			background: #3587F7;
			border-radius: 20rpx;
			color: #FFFFFF;
		}
	}
</style>
